{% extends "loginBase.html" %}

{% block title %}
欢迎来财豆
{% endblock %}

{% block login %}
<div id="login">
<div>财豆说</div>
<form action="." method="post">
	{% if form.userNotExist %}
		<p style="color: red;">
			用户不存在
		</p>
	{% endif %}
	{% if form.passwordIsWrong %}
		<p style="color: red;">
			密码错误
		</p>
	{% endif %}
    <div class="field">
        {% if form.name.errors %}
        	<p style="color: red;">
				邮箱不能为空
			</p>
        {% endif  %}
    </div>
    <div class="field">
        <label for="id_name">邮箱:</label>
        {{ form.name }}
    </div>
    <div class="field">
        {% if form.password.errors %}
        	<p style="color: red;">
        		密码不能为空
        	</p>
        {% endif  %}
    </div>
    <div class="field">
        <label for="id_password">密码:</label>
        {{ form.password }}
    </div>
    <input type="submit" value="登陆">
    <a href="development">注册</a>
</form>
</div>
{% endblock %}
{% block left %}
<div id="left">
<ul>
	<li>老孙</li>
	<li>财豆说开说了。</li>
	<li>老王</li>
	<li>鼎捷要上市了。</li>
</ul>
</div>
{% endblock %}
{% block right %}
<div id="right">
<ul>
	<li><a href="development">交易时间外的同城活动</a></li>
	<li><a href="development">正在看盘时……</a></li>
	<li><a href="development">每日一说身边的上市公司与欲上市公司</a></li>
	<li><a href="development">全球资讯站</a>
	<div>
	<ul>
		<li><a href="development">中国</a></li>
		<li><a href="development">美国</a></li>
		<li><a href="development">香港</a></li>
		<li><a href="development">日本</a></li>
		<li><a href="development">韩国</a></li>
		<li><a href="development">欧洲</a></li>
		<li><a href="development">英国</a></li>
	</ul>
	</div>
	</li>
</ul>
</div>
{% endblock %}
